/*
 * commons is a based project implemented
 * Copyright (C) 2024 Jasmine
 */
package com.easy.core.redis.key;

import java.util.concurrent.TimeUnit;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * Redis key 接口
 *
 * @author Jasmine
 * @since 1.0.0
 */
public interface RedisKey {
    @Schema(title = "key")
    String getKey();

    @Schema(title = "返回过期时间(默认时间单位秒)")
    int getTimeout();

    @Schema(title = "返回过期时间单位")
    TimeUnit getTimeUnit();
}
